/*
  Bridgeģʽ
*/

#include <iostream>
#include "Abstraction.h"
#include "AbstractionImp.h"

int main()
{
	Abstraction* pRedA = new RefinedAbstraction(new ConcreteImpA());
	pRedA->Opration();

	Abstraction* pRedB = new RefinedAbstraction(new ConcreteImpB());
	pRedB->Opration();

	delete pRedA;
	pRedA = NULL;
	delete pRedB;
	pRedB = NULL;

	system("pause");
	return 0;
}